<script>
setTimeout(echoStr,3000);
function echoStr(){
    console.log('JavaScript');
}
</script>